package com.wanmait.translate.pojo;

import java.io.Serializable;
import java.util.List;

public class SystemDept implements Serializable {
    private Integer id;

    /**
	* 父部门id
	*/
    private Integer parentId;
    /**
     * @Author huweibin
     * @Description 父部门对象用于封装
     * @Date 16:10 2020/11/7
     **/
    private SystemDept parent;

    /**
	* 部门名称
	*/
    private String name;

    /**
	* 显示顺序
	*/
    private Integer sort;

    /**
	* 人数
	*/
    private Integer personCount;

    /**
	* 描述
	*/
    private String description;

    /**
	* 负责人(用户id)
	*/
    private SystemUser principal;

    /**
	* 部门状态（0正常 1停用）
	*/
    private Integer enable;

    //用于封装岗位
    private List<SystemPost> posts;
    //用于递归查询部门
    private List<SystemDept> depts;
    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getPersonCount() {
        return personCount;
    }

    public void setPersonCount(Integer personCount) {
        this.personCount = personCount;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public SystemUser getPrincipal() {
        return principal;
    }

    public void setPrincipal(SystemUser principal) {
        this.principal = principal;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public SystemDept getParent() {
        return parent;
    }

    public void setParent(SystemDept parent) {
        this.parent = parent;
    }

    public List<SystemPost> getPosts() {
        return posts;
    }

    public void setPosts(List<SystemPost> posts) {
        this.posts = posts;
    }

    public List<SystemDept> getDepts() {
        return depts;
    }

    public void setDepts(List<SystemDept> depts) {
        this.depts = depts;
    }

    @Override
    public String toString() {
        return "SystemDept{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", parent=" + parent +
                ", name='" + name + '\'' +
                ", sort=" + sort +
                ", personCount=" + personCount +
                ", description='" + description + '\'' +
                ", principal=" + principal +
                ", enable=" + enable +
                ", posts=" + posts +
                ", depts=" + depts +
                '}';
    }
}